# docker内部打包太过于卡顿
# FROM circleci/node:latest-browsers as builder

# WORKDIR /usr/src/app/
# USER root
# COPY package.json ./

# RUN yarn config set registry http://registry.npm.taobao.org/

# RUN yarn 

# COPY ./ ./

# RUN yarn build


FROM nginx

WORKDIR /usr/share/nginx/html/

COPY ./build  /usr/share/nginx/html/
COPY ./default.conf  /etc/nginx/conf.d/default.conf

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]